package com.atguigu.principle.singleresponsibility.factorymethod.pizzastore;

/**
 * @Author: yangtao
 * @Description:
 */
//将pizza类做成抽象
public abstract class Pizza {

    protected String name;
      //准备原材料 不同的披萨不一样 做成抽象方法
    public abstract void prepare();
    public void bake(){
        System.out.println(name +"backing");
    }

    public void cat(){
        System.out.println(name +"cutting;");
    }

    public void setName(String name){
        this.name = name;
    }
}
